package com.le.api;

import com.le.api.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 动态代理：mp      Dao extends Mapper
 */
//             value：服务名        path：访问路径的前缀
@FeignClient(value = "bbs-board", path = "reply", configuration = FeignConfig.class)
public interface BoardReplyApi {

    // http://bbs-board/reply/isReplyId?replyid=X
    @RequestMapping(value = "isReplyId", method = RequestMethod.GET)
    public Map<String, Object> isReplyId(@RequestParam Integer replyid);
}
